<link href="<?php echo base_url()?>assets/css/icons/icol16.css" rel="stylesheet">
<div id="page-wrapper">

            <div class="container-fluid">

                <!-- Page Heading -->
                <div class="row">
                    <div class="col-lg-12">
                        <h1 class="page-header">
                            Kelola Pegawai
                        </h1>
                        <ol class="breadcrumb">
                            <li>
                                <i class="fa fa-dashboard"></i>  <a href="<?php echo base_url(); ?>home">Dashboard</a>
                            </li>
                            <li class="active">
                                <i class="fa fa-edit"></i> Kelola Pegawai
                            </li>
                            <li class="active">
                                <i></i> Manager Marketing
                            </li>
                        </ol>
                    </div>
                </div>
                <!-- /.row -->
				<div class="col-lg-8">
                        <h2>List Manager Marketing</h2>
                        <a href="<?php echo base_url()?>modul/manager_marketing/add" class="btn"><i class="icol-add"></i> Add</a>
                        <div class="">
                            <table class="table table-hover table-striped">
                                <thead>
                                    <tr>
                                        <th>No</th>
                                        <th>Nama</th>
                                        <th>Username</th>
                                        <th>status</th>
                                        <th>Action</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $i = 1 ?>
                                    <?php foreach($rows as $row): ?>
                                    <tr>
                                        <td><?php echo $i ?></td>
                                        <td><?php echo $row->nama_manager_marketing ?></td>
                                        <td><?php echo $row->username_manager_marketing ?></td>
                                        <td><?php if ($row->status == 1) echo "Aktif"; else echo "Tidak Aktif"; ?> </td>
                                        <td>
                                            <a href="<?php echo base_url()?>modul/manager_marketing/show/<?php echo $row->id_manager_marketing?>" class='btn'><i class='icol-magnifier'></i> Show</a>
                                            <a href="<?php echo base_url()?>modul/manager_marketing/edit/<?php echo $row->id_manager_marketing?>" class='btn'><i class='icol-pencil'></i> Edit</a>
                                            <?php if ($row->status == 1) {?>
                                                    <a href="<?php echo base_url()?>modul/manager_marketing/nonaktif/<?php echo $row->id_manager_marketing?>" class='btn' OnClick="return confirm('Are you sure?');"><i class='icol-cross'></i> Nonaktifkan</a> <?php ;} 
                                                  else {?>
                                                    <a href="<?php echo base_url()?>modul/manager_marketing/aktif/<?php echo $row->id_manager_marketing?>" class='btn' OnClick="return confirm('Are you sure?');"><i class='icol-accept'></i> Aktifkan</a> <?php ;} ?>
                                        </td>
                                    </tr>
                                    <?php $i++; ?>
                                    <?php endforeach ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <!-- /.row -->

            </div>
            <!-- /.container-fluid -->
